package com.woniuxy.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 马宇航
 * @Do: 用于输出配置中心中，自定义的配置
 * @DateTime: 22/07/13/0013 下午 2:02
 * @Component: 成都蜗牛学苑
 **/
@RestController
@RefreshScope
public class DemoNacosConfigController {
    @Value("${config.nacos}")
    String msg;
    @RequestMapping("/test")
    public String demoNacosControl(){
        return msg;
    }
}
